package com.example.service;

import com.example.pojo.Qualification;
import com.example.req.QualificationTaskReq;
import org.activiti.engine.task.Comment;
import org.activiti.engine.task.Task;

import java.util.List;

public interface QualificationProcessService {
    //开启流程
    boolean startQualification(Qualification qualification);

    //根据用户ID查询任务
    List<Task> queryQualificationTaskByUserId(Long id);

    //根据TaskId获取businessKey
    String getBusinessKeyByTaskId(String taskId);

    //根据TaskId获取关联的批注
    List<Comment> queryAllCommentByTaskId(String taskId);

    //根据TaskId获取当前节点出口连线的名称集合
    List<String> queryButtonListByTaskId(String taskId);

    //流程推进
    boolean complete(QualificationTaskReq qualificationTaskReq);
}
